package com.yyq.adms.yyb.paper.pojo;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.yyq.sos.pojo.BaseEntity;

/**
 * 投稿论文
 * 
 * @author 杨应滨
 * @2012-12-4
 * 
 */
@Entity
@Table(name = "papersubmission")
public class PaperSubmission extends BaseEntity implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	 * 论文名称
	 */
	private String paperName;

	/**
	 * 作者
	 */
	private String author;

	/**
	 * 提交部门
	 */
	private String submitDep;

	/**
	 * 备案时间
	 */
	private Date remarkDate;

	/**
	 * 状态
	 */
	private String states; //1：已投稿；2：已录用;

	/**
	 * 所属平台ID
	 */
	private String belongPlateFormID;

	/**
	 * 报送单位
	 */
	private String sentDep="14";

	/**
	 * 批注
	 */
	private String endorse;
	
	
	/**
	 * 单位名称
	 */
	private String sentDepName;
	

	/**
	 * 是否全局可视
	 */
//	private Integer isGlobal;

	/**
	 * 是否有附件
	 */
//	private Integer isHavePatents;

	/**
	 * 是否可用
	 */
	private Integer isEnabled;

	/**
	 * 数据来源
	 */
//	private Integer sourceID;

	/**
	 * 是否提交总部
	 */
//	private Integer isSubmitTop;

	/**
	 * 所属年份，不需要加入数据库
	 */
	private String belongYear;

	public PaperSubmission() {
		super();
		this.sentDep="14";
		this.sentDepName="中交第四航务工程研究院有限公司";
	}

	public PaperSubmission(String paperName, String author, String submitDep,
			Date remarkDate, String states, String belongPlateFormID,String sentDep,
			 Integer isEnabled) {
		super();
		this.paperName = paperName;
		this.author = author;
		this.submitDep = submitDep;
		this.remarkDate = remarkDate;
		this.states = states;
		this.belongPlateFormID = belongPlateFormID;
		this.sentDep = sentDep;
//		this.isGlobal = isGlobal;
//		this.isHavePatents = isHavePatents;
		this.isEnabled = isEnabled;
//		this.sourceID = sourceID;
//		this.isSubmitTop = isSubmitTop;
	}

	@Column(name = "author", length = 100)
	public String getAuthor() {
		return author;
	}

	@Column(name = "belongplateformid", length = 100)
	public String getBelongPlateFormID() {
		return belongPlateFormID;
	}

	@Transient
	public String getBelongYear() {
		return belongYear;
	}

	@Column(name = "isenabled")
	public Integer getIsEnabled() {
		return isEnabled;
	}

//	@Column(name = "isglobal")
//	public Integer getIsGlobal() {
//		return isGlobal;
//	}
//
//	@Column(name = "ishavepatents")
//	public Integer getIsHavePatents() {
//		return isHavePatents;
//	}
//
//	@Column(name = "issubmittop")
//	public Integer getIsSubmitTop() {
//		return isSubmitTop;
//	}


	@Column(name = "papername",length=100)
	public String getPaperName() {
		return paperName;
	}

	@Column(name = "remarkdate")
	public Date getRemarkDate() {
		return remarkDate;
	}

	@Transient
	public String getSentDep() {
		return sentDep;
	}
//
//	@Column(name = "sourceid")
//	public Integer getSourceID() {
//		return sourceID;
//	}

	@Column(name = "states")
	public String getStates() {
		return states;
	}

	@Column(name = "submitdep")
	public String getSubmitDep() {
		return submitDep;
	}

	public void setAuthor(String author) {
		this.author = author;
	}

	public void setBelongPlateFormID(String belongPlateFormID) {
		this.belongPlateFormID = belongPlateFormID;
	}

	public void setBelongYear(String belongYear) {
		this.belongYear = belongYear;
	}

	public void setIsEnabled(Integer isEnabled) {
		this.isEnabled = isEnabled;
	}

//	public void setIsGlobal(Integer isGlobal) {
//		this.isGlobal = isGlobal;
//	}
//
//	public void setIsHavePatents(Integer isHavePatents) {
//		this.isHavePatents = isHavePatents;
//	}
//
//	public void setIsSubmitTop(Integer isSubmitTop) {
//		this.isSubmitTop = isSubmitTop;
//	}


	public void setPaperName(String paperName) {
		this.paperName = paperName;
	}

	public void setRemarkDate(Date remarkDate) {
		this.remarkDate = remarkDate;
	}

	public void setSentDep(String sentDep) {
		this.sentDep = sentDep;
	}

//	public void setSourceID(Integer sourceID) {
//		this.sourceID = sourceID;
//	}

	public void setStates(String states) {
		this.states = states;
	}

	public void setSubmitDep(String submitDep) {
		this.submitDep = submitDep;
	}

	@Column(name="endorse")
	public String getEndorse() {
		return endorse;
	}

	public void setEndorse(String endorse) {
		this.endorse = endorse;
	}

	@Column(name="sentdepname")
	public String getSentDepName() {
		return sentDepName;
	}

	public void setSentDepName(String sentDepName) {
		this.sentDepName = sentDepName;
	}
	
}
